package cn.juque.datapipeline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务执行信息</li>
 * </ul>
 * {@code @date} 2023-04-03 18:33:19
 **/
@Data
@TableName(value = "DB_TASK_EXECUTE_INFO")
public class TaskExecuteInfo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 任务组ID
     */
    @TableField(value = "TASK_GROUP_ID")
    private String taskGroupId;

    /**
     * 任务ID
     */
    @TableField(value = "TASK_ID")
    private String taskId;

    /**
     * 执行状态：1-待执行；2-执行中；3-已完成；4-失败
     */
    @TableField(value = "EXECUTE_STATUS")
    private Integer executeStatus;

    /**
     * 执行IP
     */
    @TableField(value = "EXECUTE_IP")
    private String executeIp;

    /**
     * 执行开始时间
     */
    @TableField(value = "START_TIME")
    private Date startTime;

    /**
     * 执行结束时间
     */
    @TableField(value = "END_TIME")
    private Date endTime;

    /**
     * 执行批次号
     */
    @TableField(value = "EXECUTE_BATCH_NO")
    private String executeBatchNo;

}
